import pymysql

conn=pymysql.connect(
    host='localhost',
    port=3306,
    user='root',
    password='',
    db='media_process',
    charset='utf8'
)

cursor=conn.cursor()

sql = "insert into tasks(task_id) values('213e5');"
# sql = "select * from tasks;"
rows=cursor.execute(sql)
conn.commit()
cursor.close()
conn.close()
